package com.jokerpan.project.mapper;

import com.jokerpan.project.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * @author jokerpan
 */
@Mapper
public interface CommentMapper {

    List<Comment> queryList(Comment comment);

    List<LinkedHashMap<String, Object>> queryByBlogId(Comment comment);

    int add(Comment comment);

    Comment queryById(Integer id);

    int like(Comment comment);

    int dislike(Comment comment);

    int update(Comment comment);

    int updateChildren(Integer id);

    int deleteById(Integer id);

    int deleteByBlogId(Integer id);

}
